package com.zjj.io.recursion;

/**
 * @author zhoujunjie
 * @desc TODO
 * @date
 */
public class RecursionTest1 {
    public static void main(String[] args) {
        System.out.println("第一天摘了"+peach(1)+"桃子");  //1534
    }
    public static int peach(int n){
        if(n==10){
            return 1;
        }
        return 2*peach(n+1) + 2;
    }

}
